package com.lagou.domain;

import java.util.List;

/**
 * 文章类
 */
public class t_article {
    private int id;//文章id
    private String title;//文章标题
    private String content;//文章内容
    //一个文章可有多个评论
    private List<t_comment> comments;

    @Override
    public String toString() {
        return "t_article{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", comments=" + comments +
                '}';
    }

    public List<t_comment> getComments() {
        return comments;
    }

    public void setComments(List<t_comment> comments) {
        this.comments = comments;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
